/**
 * @author Jialun Bian
 * @version 1.0
 */
package userInterface;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;



public class MainFrame {

	/**
	 * @param args
	 */
    private static void createAndShowGUI() {
        //TODO: add the key_binding to each menubutton
        JFrame frame=new JFrame("SimplePCLogo");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);





        frame.getContentPane().add(new MainToolBar(),BorderLayout.PAGE_START);


        frame.getContentPane().add(new MainPanel(),BorderLayout.CENTER);


        frame.getContentPane().add(new CommandPanel(),BorderLayout.PAGE_END);


        frame.setJMenuBar(new MainMenuBar());

        frame.pack();
        //Very Important
        frame.setVisible(true);
    }
	public static void main(String[] args) {
        //Don't know why do it like this....
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });

	}

}
